#!/bin/sh

set -e

fromday="20130105"
today="20121201"

while [ $fromday -ge $today ]; do
    echo $fromday
    ./hbase_get_fourthinfo_raw_data.sh $fromday
    ./load_fourthinfo_to_mysql.py $fromday

    fromday=`date -d "$fromday -1 day" +"%Y%m%d"`
done

